package com.jweb.framework.core.impl;

import com.jweb.framework.core.channel.ChannelContext;


public class DefaultChannelContext<Request , Response> implements ChannelContext<Request,Response>{ 
	
	private Request request  ;
	private Response response ;
	private Object requestPayload ;
	private Object responsePalyload ;
	private String state ;
	
	public DefaultChannelContext(){
		
	}
	
	public DefaultChannelContext(Request request , Response response){
		this.request = request ; 
		this.response = response ;
	}
	
	public Request getRequest() {
		return this.request;
	}

	public Object getRequestPayload() {
		return this.requestPayload;
	}

	public Response getResponse() {
		
		return this.response;
	}

	public Object getResponsePalyload() {
		return this.responsePalyload;
	}

	public String getState() {
		return this.state;
	}

	public void setRequestPayload(Object obj) {
		this.requestPayload = obj ;
	}

	public void setResponsePayload(Object obj) {
		this.responsePalyload = obj ;
	}

	public void setState(String s) {
		this.state = s ;
	}
}
